<div class="node" ng-class="{'active':selected.id==item.id}">
  <input type="checkbox" ng-model="item.$$isChecked" class="check-box" ng-if="canChecked" ng-change="wrapCallback('itemCheckedChanged', item, $event)">
  
  <i ng-click="itemExpanded(item, $event);" class="{{getItemIcon(item)}}"></i>
  <span class='text-field' ng-click="wrapCallback('itemClicked', item, $event);"><i class="{{getFolderIcon(item)}}"></i>{{item[textField]}}</span>
</div>

<ul ng-if="!isLeaf(item)" ng-show="item.$$isExpand">
   <li ng-repeat="item in item.children" ng-include="'tpls/tree/treeItem.html'"></li>
</ul>